package com.hcandtx.Bms.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcandtx.Bms.bean.Admin;
import com.hcandtx.Bms.mapper.AdminMapper;
import com.hcandtx.Bms.service.IAdminService;
import com.hcandtx.Bms.service.IUserService;

@Service("adminService")
public class AdminServiceImpl implements IAdminService{
	
	@Autowired
	AdminMapper adminMapper;
	
	@Override
	public Admin loginadmin(String adminname, String passwd) {
		
		return adminMapper.loginadmin(adminname,passwd);
	}

	@Override
	public Admin findById(int id) {
		
		return adminMapper.findById(id);
	}

}
